<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:ui="http://xmlns.jcp.org/jsf/facelets" xmlns:f="http://xmlns.jcp.org/jsf/core" xmlns:h="http://xmlns.jcp.org/jsf/html" xmlns:b="http://bootsfaces.net/ui">

    <ui:composition template="/resources/template/squelette/squelette.xhtml">

        <ui:define name="titre">
            <h:outputText value="#{administrationPaysAjoutModifController.ajout ? 'Ajout' : 'Modification'} d'un pays" />
        </ui:define>

        <ui:define name="content">
            <h:form>
                <b:panel>
                    <b:inputText id="id_ajout_login" label="Code" value="#{administrationPaysAjoutModifController.pays.code}" fieldSize="sm" span="3" required="true" />
                    <b:inputText id="id_ajout_nom" label="Libellé" value="#{administrationPaysAjoutModifController.pays.libelle}" fieldSize="sm" span="3" required="true" />
                    <b:inputText id="id_ajout_prenom" label="Code alpha2" value="#{administrationPaysAjoutModifController.pays.alpha2}" fieldSize="sm" span="3" required="true"/>
                    <b:inputText id="id_ajout_mail" label="Code alpha3" value="#{administrationPaysAjoutModifController.pays.alpha3}" fieldSize="sm" span="3" required="true"/>
                    <f:facet name="footer">
                        <div class="text-center">
                            <h:commandLink action="#{administrationPaysAjoutModifController.valider()}">
                                <b:button value="Valider" look="primary" size="sm" />
                            </h:commandLink>
                        </div>
                    </f:facet>
                </b:panel>
            </h:form>
        </ui:define>

    </ui:composition>
</html>